package com.dgut.doctorservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author dgut
 * @since 2021-09-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Prescription对象", description="")
public class Prescription implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "患者id")
    private String pId;

    @ApiModelProperty(value = "开药数量")
    private Integer number;

    @ApiModelProperty(value = "药品id")
    private String mId;

    @ApiModelProperty(value = "医生id")
    private String doctorId;

    @ApiModelProperty(value = "逻辑删除：1、已删除；2、未删除")//用来标识该药是否已经取了
    @TableLogic("deleted")
    private Integer deleted;

    private String date;

    private Integer flags;

}
